class Flower:
    def __init__(self, color, petalCount):
        self.color = color
        self.petalCount = petalCount

    def introduce(self):
        print('我有' + self.petalCount + '瓣' + self.color + '的花瓣。')


class orchid(Flower):
    def __init__(self):
        Flower.__init__(self, '紫色', '4')

    def introduce(self):
        print('我是兰花。')
        Flower.introduce(self)


a = orchid()
a.introduce()


def buy(flower: orchid, count):
    print('我买了' + str(count) + '朵花')
    flower.introduce()


b = Flower('红色', '5')
buy(a, 4)
buy(b, 3)
